import React, { Component } from 'react'

export default class App extends Component {
  constructor (props) {
    super(props)
    this.state = {
      test: '<mark>标记</mark>'
    }
  }
  render() {

    return (
      <div>
        <p>
         { this.state.test }
        </p>
        <div dangerouslySetInnerHTML = { {__html: this.state.test} }></div>
      </div>
    )
  }
}
